<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link th:href="@{favicon.ico}"  rel="shortcut icon"/>
    <title>登录页</title>
</head>
<body>
欢迎微博登录页：
<div class="con">
    <div>
        <form action="#" th:action="@{/users/login}" th:object="${users}" method="post">
            <p>用户名: <input type="text" th:field="*{username}" name="username"  /></p>
            <p>密&nbsp;&nbsp;&nbsp;&nbsp;码: <input type="text" th:field="*{password}" name="password"/></p>
            <p>
                <input type="submit" value="Submit" />
                <input type="reset" value="Reset" />
            </p>
        </form>
    </div>

</div>
<div class="info">
    <p th:if="${errorInfo != null}">
        <span th:text="${errorInfo}"></span>
    </p>
</div>

<style>

</style>
</body>
</html>